package com.e3.basdoc.goods.server;

import com.e3.basdoc.goods.service.GoodsQueryService;
import com.e3.basdoc.goods.service.GoodsService;
import com.e3.core.base.ServiceLocator;

public class GoodsServiceClient {
	
	private static GoodsService goodsService;
	
	private static GoodsQueryService goodsQueryService;
	
	public static GoodsService getGoodsService(){
		if(goodsService == null){
			goodsService = ServiceLocator.getService(GoodsService.class);
		}
		return goodsService;
	}
	
	public static GoodsQueryService getGoodsQueryService(){
		if(goodsQueryService == null){
			goodsQueryService = ServiceLocator.getQueryService(GoodsQueryService.class);
		}
		return goodsQueryService;
	}

}
